package OneDay;

public class DemoC {
    public void c(){
        System.out.println("我是c类的c 方法");
        //调用a类a 方法
        //1.产生Demoa的对象
        DemoA a = new DemoA();
        a.a();
    }
    public void c(DemoA a){
        System.out.println("我是c类的c方法");
        a.a();
    }
}
